package com.atcumt.Huawei;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class HJ004 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        List<String> list = Arrays.asList(s.split(" "));
        Collections.reverse(list);
        for (String str : list) {
            System.out.print(str + " ");
        }
    }
}
